<div class="pageHeader" style="height: 50px;">
	<h2>系统配置管理</h2>
</div>

<div class="pageContent">
	<form method="post" action="__SELF__" class="pageForm required-validate" onsubmit="return validateCallback(this ,navTabAjaxDone)">
	<div class="tabs" currentIndex="0" eventType="click">
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<volist name="Think.config.CONFIG_GROUP_LIST" id="group">
					<li><a href="javascript:;"><span>{$group}</span></a></li>
					</volist>
				</ul>
			</div>
		</div>
		<div class="tabsContent" layoutH="130" style="background: #fff;">
			<volist name="Think.config.CONFIG_GROUP_LIST" id="title">
				<assign name="grp" value="$key" />
				<div class="pageFormContent nowrap">
				<foreach name="_list" item="config">
					<eq name="config.group" value="$grp">
					<dl>
						<dt>{$config.title}</dt>
						<dd>
						<switch name="config.type">
							<case value="0">
							<input type="text" name="config[{$config.name}]" value="{$config.value}">
							</case>
							<case value="1">
							<input type="text" name="config[{$config.name}]" value="{$config.value}">
							</case>
							<case value="2">
							<textarea class="input-xlarge" rows="5" name="config[{$config.name}]">{$config.value}</textarea>
							</case>
							<case value="3">
							<textarea class="input-xlarge" rows="5" name="config[{$config.name}]">{$config.value}</textarea>
							</case>
							<case value="4">
							<select name="config[{$config.name}]" class="combox">
								<volist name=":parse_config_attr($config['extra'])" id="vo">
								<option value="{$key}" <eq name="config.value" value="$key">selected</eq>>{$vo}</option>
								</volist>
							</select>
							</case>
						</switch>
						</dd>
					</dl>
					<div class="divider"></div>
					</eq>
				</foreach>
					
				</div>
			</volist>
		</div>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
		</ul>
	</div>
	</form>
</div>